﻿using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.DataProtection;

namespace MyMvc.Custom
{
    public class CustomRemoteOptions : RemoteAuthenticationOptions
    {
        public CustomRemoteOptions()
        {
            var dataProtector = DataProtectionProvider.CreateProtector(
                typeof(CustomRemoteHandler).FullName);
            StateDataFormat = new PropertiesDataFormat(dataProtector);
        }

        internal ISecureDataFormat<AuthenticationProperties> StateDataFormat { get; }
    }
}
